package com.example.front_back_separation_development.dao;

import com.example.front_back_separation_development.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository //@Repository或@Mapping标注持久层
public interface DeviceRepository extends JpaRepository<Device,Integer> {//两个泛型：当前实体类和主键类型
public Page<Device> findByTitleLike(String name, Pageable pageable);
}
